﻿using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using System.Security.Claims;

namespace Demo.Net.JWT.Controllers
{
    [Route("api/[controller]/[action]")]
    [ApiController]
    public class TestController : ControllerBase
    {


        [HttpGet]
        public async Task<IActionResult> Test()
        {
            var userId = User.GetUserId();

            return Ok("111");
        }
    }
}
